extends ../layout

block content
  .pb-2.mt-2.mb-4.border-bottom
    h2
      i.far.fa-building.fa-sm
      | New York Times API

  .btn-group.d-flex(role='group')
    a.btn.btn-primary(href='http://developer.nytimes.com/page', target='_blank').w-100
      i.far.fa-check-square.fa-sm
      | Overview
    a.btn.btn-primary(href='http://prototype.nytimes.com/gst/apitool/index.html', target='_blank').w-100
      i.fas.fa-laptop.fa-sm
      | API Console
    a.btn.btn-primary(href='http://developer.nytimes.com/docs', target='_blank').w-100
      i.fas.fa-code-branch.fa-sm
      | API Endpoints

  h4 Young Adult Best Sellers
  table.table.table-striped.table-bordered
    thead
      tr
        th Rank
        th Title
        th.hidden-xs Description
        th Author
        th.hidden-xs ISBN-13
    tbody
      for book in books
        tr
          td= book.rank
          td= book.book_details[0].title
          td.hidden-xs= book.book_details[0].description
          td= book.book_details[0].author
          td.hidden-xs= book.book_details[0].primary_isbn13
